package com.zyy.array;
import java.util.Scanner;
public class ArrayExer {
    public static void main(String[] args){
        String[] xq = {"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};
        Scanner scan =new Scanner(System.in);
        System.out.print("请输入查询的数值（1-7）：");
        int week = scan.nextInt();
        if(week > 1 || week > 7){
            System.out.println("输入错误");
        }else{
            System.out.println(xq[week - 1]);
        }
    }
}
